package ink.fujisann.learning.stock.repository;

import ink.fujisann.learning.stock.pojo.SysFile;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface SysFileRepository extends JpaRepository<SysFile, String> {
    @Query(value = "select * from stock.sys_file order by createTime desc limit 1", nativeQuery = true)
    SysFile findLatest();
}
